package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @version 1.0
 * @description 说明
 * @package com.zzyl.nursing.job
 */
@Component(value = "contractJob")
@Slf4j
public class ContractJob {

    @Autowired
    private IContractService iContractService;

    public void updateContractStatusJob(){
        log.info("后台更新合同状态任务开始运行...");
        iContractService.updateContractStatus();
        log.info("后台更新合同状态任务结束...");
    }
}
